Page({
  data: {
    latitude: 23.4320559333,
    longitude: 113.1718989320,
    markers: [{
      latitude: 23.4320559333,
      longitude: 113.1718989320,
      name: '华工广州学院'
    }],
    covers: [{
      latitude: 23.4320559333,
      longitude: 113.1718989320,
      iconPath: '../../demo/resources/image/location.png'
    }, {
      latitude: 23.4320559333,
      longitude: 113.1718989320,
      iconPath: '../../demo/resources/image/location.png'
    }]
  },
    onLoad: function (options) {
        wx.getLocation({
            type: 'wgs84',
            altitude:true,
            success: function (res) {
                console.log("纬度" + res.latitude);
                console.log("经度" + res.longitude);
                console.log("速度" + res.speed);
                console.log("位置的精确度" + res.accuracy);
                console.log("高度" + res.altitude);
                console.log("垂直精度" + res.verticalAccuracy);
                console.log("水平精度" + res.horizontalAccuracy);
            }
        })
  },
    lookMeMap:function(){
        wx.openLocation({
            latitude: this.data.latitude,
            longitude: this.data.longitude,
            scale: 28
        })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
      return {
          title: '他在',
          path: 'pages/app/map/map'
      }
  }
})
